﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ExpressionEvaluator;
using ExpressionEvaluator.Expression;

namespace Calculator.Expression.Unary
{
    public class Differentiate : UnaryAbstract
    {
        int priority;

        public Differentiate(Expr v)
        {
            Value = v.Value;
            //if (v is Sin)
            //{
            //    Value = (Cos)Value;
            //}
        }

        public override string ToString()
        {
            return Value.ToString();
        }

        public override string Name
        {
            get { return Value.ToString(); }
        }

        public override Expr diff(Expr expr)
        {
            throw new NotImplementedException();
        }
    }
}
